<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnMsgIdAndSyncResultAndSyncDescriptionAndAsyncResultAndAsyncDescriptionToVserialisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vserialis', function (Blueprint $table) {
            $table->string('msg_id')->nullable();
            $table->tinyInteger('sync_result')->default(-1);
            $table->text('sync_content')->nullable();
            $table->text('sync_description')->nullable();
            $table->tinyInteger('async_result')->default(-1);
            $table->text('async_content')->nullable();
            $table->text('async_description')->nullable();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $tabble->dropColumn('msg_id');
        $tabble->dropColumn('sync_result');
        $tabble->dropColumn('sync_content');
        $tabble->dropColumn('sync_description');
        $tabble->dropColumn('async_result');
        $tabble->dropColumn('async_content');
        $tabble->dropColumn('async_description');
    }
}
